import os.path
import time

from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
file = 'file:///' + os.path.abspath('html3') + '/radio-checkbox.html'
driver.get(file)

input = driver.find_elements(By.XPATH, "//input[@type='checkbox']")
for i in input:
    time.sleep(2)
    i.click()
time.sleep(1)

# 关闭页面
driver.quit()